<?php

class RandomGenerator
{
	public static function GetChar()
	{
		$chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890';
	    $chars_length = (strlen($chars) - 1);
	    $char = $chars{rand(0, $chars_length)};
		return $char; 
	}
	
	public static function GetString( $Length )
	{
		$String = '';
		for( $i = 0; $i < $Length; ++$i )
		{
			$String .= self::GetChar( );
		}
		return $String;
	}
}